Other Protocols

The following protocols are available globally.

  • Data source for MGLComputedShapeSource. This protocol defines two optional methods for fetching data, one based on tile coordinates, and one based on a bounding box. Classes that implement this protocol must implement one, and only one of the methods. Methods on this protocol will not be called on main thread, they will be called on the caller’s requestQueue.

    See more

    Declaration

    Objective-C

    @protocol MGLComputedShapeSourceDataSource <NSObject>

    Swift

    protocol MGLComputedShapeSourceDataSource : NSObjectProtocol
  • The MGLOfflineStorageDelegate protocol defines methods that a delegate of an MGLOfflineStorage object can optionally implement to transform various types of URLs before downloading them via the internet.

    See more

    Declaration

    Objective-C

    @protocol MGLOfflineStorageDelegate <NSObject>

    Swift

    protocol MGLOfflineStorageDelegate : NSObjectProtocol